package controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/11 14:58
 * Version:1.0-SNAPSHOT
 */
@RestController
@RequestMapping("/log")
public class LogController {

    @RequestMapping("/add")
    public String add(){
        System.out.println("LogController.add");
        return "<h1>Hello add</h1>";
    }


    @RequestMapping("/remove")
    public String remove(){
        System.out.println("LogController.remove");
        return "<h1>Hello remove</h1>";
    }


    @RequestMapping("/modify")
    public String modify(){
        System.out.println("LogController.modify");
        return "<h1>Hello modify</h1>";
    }


    @RequestMapping("/findAll")
    public String findAll(){
        System.out.println("LogController.findAll");
        return "<h1>Hello findAll</h1>";
    }


    @RequestMapping("/find/{id}")
    public String findById(@PathVariable Integer id){
        System.out.println("LogController.findById");
        return "<h1>Hello findById</h1>";
    }

}
